package com.yang.project.base.proxy;

public class SmsServiceProxy implements SmsService{
    private SmsServiceImpl smsServiceImpl;

    public SmsServiceProxy(SmsServiceImpl smsServiceImpl) {
        this.smsServiceImpl = smsServiceImpl;
    }

    @Override
    public void send() {
        System.out.println("这是代理方法");
        smsServiceImpl.send();
        System.out.println("这是代理方法");
    }
}
